package jnpf.model.ragFlow.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@Data
@ApiModel("文档更新请求")
public class DocumentUpdateRequest {
    @ApiModelProperty(value = "文档名称", required = true)
    private String name;

    @ApiModelProperty(value = "元字段", notes = "文档的元字段信息")
    private Map<String, Object> meta_fields;

    @ApiModelProperty(
        value = "分块方法",
        required = true,
        allowableValues = "naive,manual,qa,table,paper,book,laws,presentation,picture,one,email",
        notes = "文档的分块处理方法"
    )
    private String chunk_method="naive";

    @ApiModelProperty(
        value = "解析器配置",
        notes = "解析器配置参数，根据chunk_method不同而不同"
    )
    private ParserConfig parser_config;
}
